import java.util.ArrayList;
public class Camera {

   // TO DO: declare vairables
   private String brand;
   private int fLength;
   private boolean shutterPressed;


   // TO DO: Define the getter and setter methods

	public Camera(String b, int l, boolean s)
	{
			brand = b;
			fLength = l;
			shutterPressed = s;
	}

	public Camera()
	{
		brand = "Testing Brand";
		fLength = 777;
		shutterPressed = false;
	}

	public void setBrand(String b)
	{
		brand = b;
	}

	public void setfLength(int l)
	{
		fLength = l;
	}

	public void setshutterPressed(boolean s)
	{
		shutterPressed = s;
	}

	public String getBrand()
	{
		return brand;
	}

	public int getfLength()
	{
		return fLength;
	}

	public boolean getshutterPressed()
	{
		return shutterPressed;
	}

  /**
     * Test code
     * @param args Command-line parameters representing user input
     * for the tests.
     */

    public static void main(String[] args) {

       Camera a = new Camera(); //test constructor

       System.out.println("Result from 1st constructor test");
       System.out.println("Brand: " + a.getBrand());
       System.out.println("Focal Length: " + a.getfLength());
       System.out.println("Shutter Pressed: " + a.getshutterPressed());

       ArrayList<Camera> cameraArray = new ArrayList<Camera>();

       //cameraArray.add(new Camera());

       Camera b = new Camera();




        for (int i = 0; i < cameraArray.size(); ++i)
        {
           //TO DO : to set values to the attributes
           cameraArray.get(i).setBrand(args[0]);
           cameraArray.get(i).setfLength(Integer.parseInt(args[1]));
           cameraArray.get(i).setshutterPressed(Boolean.parseBoolean(args[2]));



        }


        // basic test

	for (int i = 0; i < cameraArray.size(); ++i)
    {
	 //TO DO : to get values and print the required output

	System.out.println("Brand: " + cameraArray.get(i).getBrand());
	System.out.println("Focal Length: " + cameraArray.get(i).getfLength());
	System.out.println("Shutter Pressed: " + cameraArray.get(i).getshutterPressed());



        //TO DO: comparison test
    }

  }

}